export interface Component {
    hide: boolean;
    id: string;
    index: number;
    labelText: string;
    selector: string;
    size: string;
    bindField?: string;
    defaultValue?: any;
    identifyId?: string;
    extends?: any;
    validations?: ComponentValidation[];
    tmpComItemId?: string;
    /**
     * 是否不满足显示条件
     */
    invalid?: boolean;
    /**
     * 是否是只读模式
     */
    disabled?: boolean;
}

export interface ComponentValidation {
    type: ValidationType;
    value: any;
}

export declare type ValidationType = 'required' | 'max' | 'min' | 'maxLength' | 'minLength' | 'pattern' | 'unique';
